<?php

require_once "core/db.php";
require_once "core/application/models/mchangelanguage/mchangelanguage1.php";

class Mchangelanguage2 extends Mchangelanguage1 {

    private $_query;
    private $_fetch = array();

    protected function getSettingsLanguage() {
        DB::getInstance()->openConnectionToGS();
        $this->_query = "SELECT `value_setting` FROM `personal_settings` WHERE `setting` = 'language'";
        $this->_fetch = mysql_fetch_assoc(DB::getInstance()->sql($this->_query));
        return $this->_fetch['value_setting'];
        DB::getInstance()->closeConnection();
        unset($this->_query, $this->_fetch);
    }

}

?>
